import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/upms/application',
		title: '权限应用',
		icon: 'fa-solid fa-user-shield',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsApplicationList/UpmsApplicationList')),
		),
	},
	{
		path: '/upms/authority',
		title: '权限资源',
		icon: 'fa-solid fa-key',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsAuthorityList/UpmsAuthorityList')),
		),
	},
	{
		path: '/upms/menu',
		title: '菜单管理',
		icon: 'fa-solid fa-ellipsis-vertical',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsMenuList/UpmsMenuList'))),
	},
	{
		path: '/upms/role',
		title: '角色管理',
		icon: 'fa-solid fa-id-card',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsRoleList/UpmsRoleList'))),
	},
	{
		path: '/upms/role/authority',
		title: '角色权限管理',
		icon: 'fa-solid fa-user-gear',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsRoleAuthorityList/UpmsRoleAuthorityList')),
		),
	},
	{
		path: '/upms/role/account',
		title: '角色账户管理',
		icon: 'fa-solid fa-user-lock',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/upms/UpmsRoleAccountList/UpmsRoleAccountList')),
		),
	},
] as ViewRouteDto[]

export default routes
